package com.zhiche.lisa.bms.dao.mapper.fee;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.zhiche.lisa.bms.dao.model.fee.FeeReceivable;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 应收账款 Mapper 接口
 * </p>
 *
 * @author liuanshun
 * @since 2018-09-12
 */
public interface FeeReceivableMapper extends BaseMapper<FeeReceivable> {

	/**
	 * 无token查询应收账款
	 *
	 * @param ew
	 * @return
	 */
	List<FeeReceivable> selectListNoTenant(@Param("ew") Wrapper<FeeReceivable> ew);

	/**
	 * 无token查询总和
	 *
	 * @param ew
	 * @return
	 */
	BigDecimal selectSumNoTenant(@Param("ew") Wrapper<FeeReceivable> ew);
}
